package com.ruoyi.ticket.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 闸机记录业务对象 t_ticket_gate_record
 *
 * @author xupeng
 * @date 2023-03-29
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class TicketGateRecordBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 票号（预约二维码）
     */
    @NotBlank(message = "票号（预约二维码）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String ticketNum;

    /**
     * 设备编号
     */
    @NotBlank(message = "设备编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String deviceId;

    /**
     * 记录类型
     */
    @NotNull(message = "记录类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer type;


}
